﻿#include "DelDeviceCmd.h"
#include "../util/JsonUtil.h"

DelDeviceCmd::DelDeviceCmd()
{
}

DelDeviceCmd::~DelDeviceCmd()
{
}

bool DelDeviceCmd::Parse(std::string json)
{
	JsonUtil jsonUtil;
	if (jsonUtil.Parse(json))
	{
		m_deviceId = jsonUtil.GetString("deviceId", "");
		return true;
	}
	return false;
}

std::string DelDeviceCmd::GetDeviceId()
{
	return m_deviceId;
}